package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.springboot.common.entity.BaseEntity;

import java.math.BigDecimal;

/**
 * 定量灌溉信息
 *
 * @author Fz
 * @since 1.0.0 2024-02-26
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("ration")
public class Ration extends BaseEntity {

    @Column(name = "irrigation_unit_uuid", comment = "灌溉单元基本信息UUID", type = MySqlTypeConstant.VARCHAR, length = 36)
    private String irrigationUnitUuid;

    /**
     * 灌溉水量m3
     */
    @Column(name = "irrigation_volume", comment = "灌溉水量m3" , type = MySqlTypeConstant.FLOAT)
    private Float irrigationVolume;

}